<meta http-equiv="Content-Type"
content="text/html;charset=UTF-8">

<?php
session_start();
if (!isset($_SESSION["secret"])){
	$secret = rand(1,100);
	$_SESSION["secret"]=$secret;
} else {
	$secret = $_SESSION["secret"];
}
if (isset($_REQUEST["gæt"])){
	$gæt = $_REQUEST["gæt"];
	echo "Your guess: $gæt";
	echo "<br>";
}
if ($gæt > $secret){
	echo "To high";
} elseif ($gæt < $secret){
	echo "To low";
} else {
	echo "You win";
}
?>

<form action="numberguesser.php">
Do you think you can beat me: 
<br />
<input type="text" name="gæt" />
<input type="submit" value="play" />